package com.zmn.oms.common.dio.quotation3;

import com.zmn.oms.common.dto.OmsOperator;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;

/**
 * @author weilai
 * @date:2022年8月23日 18:29:05
 * description:
 */
@Data
@ToString(callSuper = true)
public class ArtificialDiscountDIO extends OmsOperator implements Serializable {

    private static final long serialVersionUID = 6365191965058972837L;

    @ApiModelProperty("优惠券id")
    @NotNull(message = "优惠券id不能为空")
    private Integer promId;

    @ApiModelProperty("优惠金额")
    @NotNull(message = "优惠金额不能为空")
    @PositiveOrZero(message = "优惠金额不能为负数")
    private Integer discountAmount;

    @ApiModelProperty("师傅ID")
    private Integer masterId;

}
